﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Vision.Utilities.CMS6UpdateTool
{
    public class SiteFileOperator
    {
        #region Ctor
        public SiteFileOperator(string name, string folder, bool target, SiteFileOperateAction action, int order = 0, string excludedFiles = null)
        {
            Name = name;
            Folder = folder;
            Target = target;
            Action = action;
            Order = order;
            ExcludedFiles = excludedFiles ?? string.Empty;
            Restorable = false;
        }
        #endregion

        #region Properties
        public string Name{get;private set;}
        public int Order { get; private set; }
        public string Folder { get; private set; }
        public bool Target { get; private set; }
        public SiteFileOperateAction Action { get; private set; }
        public string ExcludedFiles { get; private set; }
        public bool Restorable { get; set; }
        #endregion
    }

    public enum SiteFileOperateAction
    {
        None,
        Copy,
        Clear,
        Delete
    }
}